package com.teama4.shop.service;

import com.teama4.shop.domain.SecondType;
import com.teama4.shop.domain.SecondTypeExample;
import com.teama4.shop.mapper.SecondTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class SecondTypeServiceImpl implements SecondTypeService {
    @Autowired
    private SecondTypeMapper secondTypeMapper;
    @Override
    public long countByExample(SecondTypeExample example) {
        return secondTypeMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SecondTypeExample example) {
        return secondTypeMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return secondTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SecondType record) {
        return secondTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(SecondType record) {
        return secondTypeMapper.insertSelective(record);
    }

    @Override
    public List<SecondType> selectByExample(SecondTypeExample example) {
        return secondTypeMapper.selectByExample(example);
    }

    @Override
    public SecondType selectByPrimaryKey(Integer id) {
        return secondTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(SecondType record, SecondTypeExample example) {
        return secondTypeMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SecondType record, SecondTypeExample example) {
        return secondTypeMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(SecondType record) {
        return secondTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SecondType record) {
        return secondTypeMapper.updateByPrimaryKey(record);
    }
}
